﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Requisition_Receipt.aspx.cs" Inherits="KorleBu.Requisition_Receipt" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Requisition Receipt - <%= description %></title>
    <link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body class="printer">
    <form id="form1" runat="server">
        <asp:Panel runat="server" ID="pnlPrinter" Width="700px">
            <asp:Panel runat="server" ID="pnlContent" Width="100%" CssClass="printDiv">
                <table id="CreateRequest" class="printTable">
                    <tr>
                        <td class="blackLabel" style="border-width:thin; border-style:solid; border-color:Black;">
                            Requisition ID:
                            <asp:Label CssClass="blackLabel" ID="lblViewRequisitionID" runat="server"></asp:Label>
                        </td>
                        <td class="blackLabel" style="border-width:thin; border-style:solid; border-color:Black;">
                            Requesting Store:
                            <asp:Label CssClass="blackLabel" ID="lblViewRequestingStore" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="blackLabel" style="border-width:thin; border-style:solid; border-color:Black;">
                            Supplying Vendor:
                            <asp:Label CssClass="blackLabel" ID="lblViewVendor" runat="server"></asp:Label>
                        </td>
                        <td class="blackLabel" style="border-width:thin; border-style:solid; border-color:Black;">
                            Vendor Phone:
                            <asp:Label CssClass="blackLabel" ID="lblViewVendorPhone" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="blackLabel" style="border-width:thin; border-style:solid; border-color:Black;">
                            Vendor Address:
                            <asp:Label CssClass="blackLabel" ID="lblViewVendorAddress" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="blackLabel" style="border-width:thin; border-style:solid; border-color:Black;">
                            LPO Number:
                            <asp:Label CssClass="blackLabel" ID="lblViewLPO" runat="server"></asp:Label>
                        </td>
                        <td class="blackLabel" style="border-width:thin; border-style:solid; border-color:Black;">
                            Receiving Officer:
                            <asp:Label CssClass="blackLabel" ID="lblViewOfficer" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>

                <br />

                <asp:GridView ID="gvReceiptVoucher" runat="server" AutoGenerateColumns="False">
                                <RowStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                                <Columns>
                                    <%--<asp:BoundField DataField="ItemID" HeaderText="No." />--%>
                                    <asp:BoundField DataField="ItemName" HeaderText="Name" />
                                    <asp:BoundField DataField="QtyReceived" HeaderText="Qty." />
                                    <asp:TemplateField HeaderText="Vendor Rate<br />GH¢">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblVendorCost" Text='<%# String.Format("{0:0.00}", Eval("VendorCost")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Total Amount<br />GH¢">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblTotalCost" Text='<%# CalcCost(Eval("VendorCost"), Eval("QtyReceived")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>

                <br /><br />

                <input class="hideOnPrint" type="button" value="Print" onclick="window.print(); return false;" />
        
                <asp:Label CssClass="hideOnPrint" runat="server" ID="lblMasterError" />
            </asp:Panel>
        </asp:Panel>
    </form>
</body>
</html>
